package com.example.administrator.chesstest01;

import android.app.Activity;
import android.os.Bundle;

/**
 * Created by Administrator on 2016/7/8.
 */
public class BaseActivity extends Activity {

    public MyService.OptBinder binder = null;
    public int room_id = 0;
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
    }

//    public void showFragment(Class<? extends BaseFragment> beShowedFragment, String fragmentTag, Bundle bundle, boolean addBackStack) {
//        FragmentManager manager = getSupportFragmentManager();
//        FragmentTransaction transaction = manager.beginTransaction();
//        Fragment fragment = manager.findFragmentByTag(fragmentTag);
//        transaction.setCustomAnimations(R.anim.fragment_enter, R.anim.fragment_exit, R.anim.fragment_pop_enter, R.anim.fragment_pop_exist);
//
//        try {
//            fragment = beShowedFragment.newInstance();
//
//            if (bundle != null) {
//                fragment.setArguments(bundle);
//            }
//            transaction.add(android.R.id.content, fragment, fragmentTag);
//        } catch (Exception e) {
//
//        }
//
//        if (addBackStack) {
//            transaction.addToBackStack(fragmentTag);
//        }
//
//        transaction.commit();
//    }
}